﻿using System;
using System.Collections.Generic;
using TestApp.Resources;
using TestApp.ViewModel.UIControlsViewModel;

namespace TestApp.ViewModel
{
    public class ShoppingViewModel : IHomeBaseViewModel, IDynamicDataTemplate
    {
        // Title
        public  String Title
        {
            get
            {
                return LocalizedStrings.ShoppingPivot;
            }
        }

        //  Tiles
        public List<TileItem> Tiles
        {
            get;
            set;
        }

        // Data Template
        public  String DataTemplate
        {
            get
            {
                return @"ShoppingViewTemplate";
            }
        }

        public ShoppingViewModel()
        {
            Tiles = new List<TileItem>()
            {
                new TileItem()
                {
                    ImageUri = GraphicResources.Cart_Icon,
                    Title = LocalizedStrings.CartTile,
                    Notification = LocalizedStrings.CartNotification,
                    Message = LocalizedStrings.CartMessage,
                    GroupTag = LocalizedStrings.HubTileGroupTag,
                    Background = GraphicResources.Weekly_Specials_Background

                },
                new TileItem()
                {
                    ImageUri = GraphicResources.Orders_Icon,
                    Title = LocalizedStrings.OrdersTile,
                    Notification = LocalizedStrings.OrdersNotification,
                    Message = LocalizedStrings.OrdersMessage,
                    GroupTag = LocalizedStrings.HubTileGroupTag,
                    Background = GraphicResources.Coupons_Background
                },
                new TileItem()
                {
                    ImageUri = GraphicResources.Browse_Categories_Icon,
                    Title = LocalizedStrings.BrowseCategoriesTile,
                    Notification = null,
                    Message = LocalizedStrings.BrowseCategoriesMessage,
                    GroupTag = LocalizedStrings.HubTileGroupTag,
                    Background = GraphicResources.Shopping_List_Background
                },
                new TileItem()
                {
                    ImageUri = GraphicResources.Browse_Specials_Icon,
                    Title = LocalizedStrings.BrowseSpecialsTile,
                    Notification = null,
                    Message = LocalizedStrings.BrowseSpecialsMessage,
                    GroupTag = LocalizedStrings.HubTileGroupTag,
                    Background = GraphicResources.Recipes_Background
                },
                new TileItem()
                {
                    ImageUri = GraphicResources.MyLists_Icon,
                    Title = LocalizedStrings.My_ListsTile,
                    Notification = null,
                    Message = LocalizedStrings.My_ListsMessage,
                    GroupTag = LocalizedStrings.HubTileGroupTag,
                    Background = GraphicResources.Store_Background
                },
                new TileItem()
                {
                    ImageUri = GraphicResources.Past_Purchases,
                    Title = LocalizedStrings.Past_PurchasesTile,
                    Notification = null,
                    Message = LocalizedStrings.Past_PurchasesMessage,
                    GroupTag = LocalizedStrings.HubTileGroupTag,
                    Background = GraphicResources.Shopping_List_Background
                },
            };
        }



    }
}
